<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;

        }

        .todo-wrap {
            margin: 0 auto;
            width: 500px;
            min-height: 500px;
            border: 1px solid #ccc;
        }

        .todo-wrap input {
            height: 20px;
        }

        .todo-wrap button {
            padding: 3px 6px;
        }

        .input-wrap {
            height: 50px;
            line-height: 50px;
        }

        .input-wrap input {
            width: 200px;
        }

        .input-wrap {

            text-align: center;
        }

        .input-wrap .addBtn {
            margin-left: 10px;
        }

        .todo-wrap .item {

            width: 100%;
            height: 40px;
        }

        .todo-wrap ul {
            list-style: none;
        }


        .item .edit-wrap {
            display: none;
            align-items: center;
            width: 100%;
            height: 100%;
        }

        .item .content {
            display: flex;
            align-items: center;
            height: 100%;
        }

        .item span {
            display: inline-block;
            max-width: 330px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin: 0 10px;
            font-size: 18px;
            /* background-color: red; */
        }

        .item span.active {
            text-decoration: line-through;
            color: #999;
        }

        .item button {
            margin-left: 8px;
        }

        .item [type='checkbox'] {
            margin: 0 5px;
            width: 20px;
            height: 20px;
        }


        .item .editBtn,
        .item .saveBtn {
            background-color: yellow;
        }

        .item .delBtn,
        .item .escBtn {
            color: #fff;
            background-color: red;
        }



        .editInput {
            margin-left: 30px;
            width: 200px;
        }
    </style>
</head>

<body>
    <div class="todo-wrap">

        <div class="input-wrap">
            <input type="text" class="addInput"> <button class="addBtn">add</button>
        </div>
        <ul class="list">
        </ul>
    </div>

    <script src="index.js"></script>
</body>

</html>